package com.weirdor.boot;

import com.weirdor.boot.admin.listen.ApplicationReadyEventListener;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

public class ServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

		System.out.println("***************************************************************");
		System.out.println("启动 adminBackend...");

		application.sources(AdminApplication.class)

				.listeners(new ApplicationReadyEventListener());

		return application;
	}

}
